package carFactory;

public class FuelFactory extends AbstractFactory{
	Fuel fcar;
	FuelFactory(){
		this.obs = new FuelObserver();
	}
	public void create() {
		System.out.println("----------------------");
		this.engine = new EngineFuel();
		this.frame = new AutomobileFrame();
		this.gearbox = new Gearbox();
		this.tires = new Tires();
	}
	
	public Icar assemble() {
		this.fcar = new Fuel(this.engine, this.gearbox, this.tires);
		System.out.println("----------------------");
		return this.fcar;
	}
	
}
